#!/usr/bin/env python
#-*- coding: utf-8 -*-
# Copyright 2008 klen <horneds@gmail.com>


""" Boardgames web-emulator for boardgames.leprosorium.ru """


import wsgiref.handlers

from google.appengine.ext import webapp

import controllers


__author__ = 'Kirill Klenov'


def main():
    application = webapp.WSGIApplication([
        # probably want a more elegant way of handling this
            ('/', controllers.PageMain),
            ('/new/', controllers.PageNew),
            ('/all/', controllers.PageAll),
            ('/game/', controllers.PageGame),
            ('/action/', controllers.PageAction),
        ], debug=True)
    wsgiref.handlers.CGIHandler().run(application)

if __name__ == "__main__":
    main()

